package com.github.blanexie.nexusj.table

import org.ktorm.schema.*

/*****************************************************/

object UserTorrent : Table<Nothing>("user_torrent") {
    var id = int("id").primaryKey()
    var userId = int("user_id")
    var infoHash = varchar("info_hash")
    var createTime = datetime("create_time")
    var authKey = varchar("auth_key")

    //当前用户 当前种子的邮箱上传量
    var upload = long("upload")

    //当前用户 当前种子的有效下载量
    var download = long("download")

    //真实的上传
    var realUpload = long("real_upload")

    // 真实的下载
    var realDownload = long("real_download")

    // 0: 下载    1: 上传的.
    var status = int("status")
}

